<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px;
      height: 200px;
      border: 1px solid red;
      /*设置超出部分是否显示*/
      overflow: visible;
      overflow: hidden;/*隐藏*/
      overflow: scroll;/*滚动显示*/
    }
    img{
      /*设置行内元素垂直对齐方式*/
      vertical-align: top;
      vertical-align: middle;
      vertical-align: bottom;
      vertical-align: baseline;
    }
  </style>
</head>
<body>
<input type="text"><img src="../b.jpg" width="100">
<div>
  <img src="../b.jpg">
</div>
</body>
</html>